package com.retail.xiaocui.server.service;

import java.util.List;
import com.retail.xiaocui.common.domain.Procurement;
import com.retail.xiaocui.common.domain.req.AddPurchaseReq;

/**
 * 采购需求申请Service接口
 *
 * @author retail
 * @date 2024-03-02
 */
public interface ProcurementService
{
    /**
     * 查询采购需求申请
     *
     * @param id 采购需求申请主键
     * @return 采购需求申请
     */
    public Procurement selectProcurementById(Long id);

    /**
     * 查询采购需求申请列表
     *
     * @param procurement 采购需求申请
     * @return 采购需求申请集合
     */
    public List<Procurement> selectProcurementList(Procurement procurement);

    /**
     * 新增采购需求申请
     *
     * @param procurement 采购需求申请
     * @return 结果
     */
    public int insertProcurement(Procurement procurement);

    /**
     * 修改采购需求申请
     *
     * @param procurement 采购需求申请
     * @return 结果
     */
    public int updateProcurement(Procurement procurement);

    /**
     * 批量删除采购需求申请
     *
     * @param ids 需要删除的采购需求申请主键集合
     * @return 结果
     */
    public int deleteProcurementByIds(Long[] ids);

    /**
     * 删除采购需求申请信息
     *
     * @param id 采购需求申请主键
     * @return 结果
     */
    public int deleteProcurementById(Long id);

    public  int combineProcurementByIds(Long[] ids);

    void updatePurchase(AddPurchaseReq addPurchaseReq);


    Procurement selectProId(Integer integer);
}
